#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QtNetwork/QNetworkReply>
#include <QJsonObject>
#include<QJsonArray>
#include<QJsonDocument>//json
#include <QSslConfiguration> //https


#include <QHttpMultiPart>
#include <QHttpPart>
#include <QFile>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QDebug>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void Post(QUrl u);
    //声明  .h文件
    private slots:
        //void finishedSlot(QNetworkReply *reply);
         void finished();
        void on_pushButton_clicked();
        void upDatasToCloud();

        void on_pushButton_2_clicked();

private:
    Ui::Widget *ui;
    QNetworkAccessManager* m_accessManager;
    QNetworkReply *reply;
    QUrl url;
    QString html_text;
};
#endif // WIDGET_H
